package com.intelligent.ispc.core.entity;

import com.google.common.collect.Lists;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Julia.Zhou on 2016/02/27.
 */
public class TestData {
    private String id;
    private String projectId;
    private String testFileUUID;
    private int loopCount;
    private Boolean isDelete;

    private Map<String, Object> testData =  new HashMap<>();
    private List<TestItem> testItems = Lists.newArrayList();
    private List<DUTAttribute> dutAttributes = Lists.newArrayList();


    public final static String TEST_ITEMS = "testItems";

    public final static String TEST_DATA_COLLECTION = "testData";

    public final static String PSA_SERIAL_NUMBER = "serialNumber";
    public final static String PSA_STATION_ID = "stationId";
    public final static String PSA_SLOT_NO = "slotNo";
    public final static String PSA_START_TIME = "startTime";
    public final static String PSA_STOP_TIME = "stopTime";
    public final static String PSA_IS_PASS = "isPass";
    public final static String PSA_FAIL_TEST_ITEMS = "failingTestItems";
    public final static String PSA_SPECIAL = "special";


    public Map<String, Object> getTestData() {
        return testData;
    }

    public void setTestData(Map<String, Object> testData) {
        this.testData = testData;
    }

    public List<TestItem> getTestItems() {
        return testItems;
    }

    public void setTestItems(List<TestItem> testItems) {
        this.testItems = testItems;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getTestFileUUID() {
        return testFileUUID;
    }

    public void setTestFileUUID(String testFileUUID) {
        this.testFileUUID = testFileUUID;
    }

    public int getLoopCount() {
        return loopCount;
    }

    public void setLoopCount(int loopCount) {
        this.loopCount = loopCount;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public List<DUTAttribute> getDutAttributes() {
        return dutAttributes;
    }

    public void setDutAttributes(List<DUTAttribute> dutAttributes) {
        this.dutAttributes = dutAttributes;
    }
}
